<template>
<view class="content">
	 <mp-html :content="contenttext"/>
	 
	 <view class="btn-index">
	 	<view class="btn-fh" @click="fhfun">
	 		返回
	 	</view>
	 </view>
	
</view>
</template>

<script>
	let app = getApp();
	export default {
	  name: "infoindex",
	  data() {
		  return {
			
			contenttext:""
			
		  }
	  },
	  onLoad(options) {
		  // console.log(JSON.parse(options.item))
		  if(app.globalData.data.noticecontent==""){
			  uni.reLaunch({
			  	url:"/pages/index/index"
			  })
		  }else{
			  this.contenttext=app.globalData.data.noticecontent
		  }
		
	  },
	  onReady() {
		  
	  		
	  	},
			
		methods:{
		fhfun(){
			// 跳转回原页面
			uni.navigateBack({
			  delta: 1,
			});
		}
		}
	}
</script>

<style scoped lang="scss">
	.content{
		padding: 50rpx 20rpx 110rpx;
	}
	.btn-index{
		position: fixed;
		width: 100%;
		height: 100rpx;
		background-color: white;
		bottom: 0rpx;
		left: 0rpx;
		.btn-fh{
			width: 120rpx;
			height: 50rpx;
			font-weight: bold;
			font-size: 24rpx;
			line-height: 50rpx;
			text-align: center;
			margin: 18rpx auto 0rpx;
			color: #7c7b7b;
			border: 5rpx solid #7c7b7b;
			border-radius: 35rpx;
		}
	}
</style>